import base from '../../base_url';
const serve = {
     // 删除我的问询
  delquery(id, params) {
    return id.post(`${base.host}` + "inquires/deleteInquiresInfo", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
   // 我的问询
  getqueryPage(id, params) {
    return id.post(`${base.host}` + "inquires/getInquiresInfoPage", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 我的收藏
  getCollectionPage(id, params) {
    return id.post(`${base.host}` + "sysDic/getCollectionPage", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 登录接口
  userPhoneLogin(id, params) {
    return id.post(`${base.host}` + "user/phoneLogin",params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 账号登录
  userLogin(id, params) {
    return id.post(`${base.host}` + "user/login", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 发送验证码接口
  userSendVrifyCode(id, params) {
    return id.post(`${base.host}` + "user/sendVrifyCode", params)
  },
  // 发送找回密码验证码接口
  sendUpdatePasswordCode(id, params) {
    return id.post(`${base.host}` + "user/sendRestPasswordCode", params)
  },
  // 重新设置密码
  updatePassword(id, params) {
    return id.post(`${base.host}` + "user/updateRestPassword", params)
  },
  // 注册发送验证码
  sendRegisterCode(id, params) {
    return id.get(`${base.host}` + "user/sendRegisterCode", { params: params })
  },
  // 注册提交
  registerUser(id, params) {
    return id.post(`${base.host}` + "user/registerUser", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  //用户详情
  userinfo(id, params) {
    return id.post(`${base.host}` + "user/getUserData", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  //elearning课程
  getTrainingPage(id, params) {
    return id.post(`${base.host}` + "training/getTrainingPage", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  }

}

export default serve